package miiteen.hb.webservice.service;

import miiteen.hb.webservice.beans.FileListResponse;
import miiteen.hb.webservice.config.FileListType;
import org.dom4j.DocumentException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.rmi.RemoteException;

@Service
public class FileListService {

    @Autowired
    private ApiService apiService;

    /**
     * 兰关动态
     *
     * @param pageNum  页数
     * @param pageSize 每页条数
     * @param pageSize 每页条数
     * @return
     * @throws RemoteException
     * @throws DocumentException
     */
    public FileListResponse lgdt(int pageNum, int pageSize) throws RemoteException, DocumentException {
        return apiService.getALLCommonFileList(FileListType.ZWXX, pageNum, pageSize);
    }
}
